﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Pay.DTO {
    public class shop_info_dto {
        /// <summary>
        /// 用户id
        /// </summary>
        [Required]
        public long id { get; set; }
        /// <summary>
        /// 货款红钻部分接收商户Id(为空则默认 该店的商户Id)
        /// </summary>
        public long? red_drill_receiver_id { get; set; }
        /// <summary>
        /// 店铺logo
        /// </summary>
        [Required(ErrorMessage = "请上传店铺logo")]
        public string shop_logo { get; set; }
        /// <summary>
        /// 背景图片
        /// </summary>
        public string shop_background_img { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        [Required(ErrorMessage = "请输入店铺名称")]
        public string shop_name { get; set; }
        /// <summary>
        /// 客服电话
        /// </summary>
        [Required(ErrorMessage = "请输入客服电话")]
        public string customer_tel { get; set; }
        /// <summary>
        /// 省市区id
        /// </summary>
        public long region_id { get; set; }
        /// <summary>
        /// 省ID
        /// </summary>
        [Required(ErrorMessage = "请选择地区")]
        public long province_id { get; set; }
        /// <summary>
        /// 市ID
        /// </summary>
        public long city_id { get; set; }
        /// <summary>
        /// 区域ID
        /// </summary>
        public long area_id { get; set; }
        /// <summary>
        /// 地区 id 用, 隔开
        /// </summary>
        [Required(ErrorMessage = "请选择地区")]
        public string region_ids { get; set; }
        /// <summary>
        /// 省市区
        /// </summary>
        public string region_name { get; set; }
        /// <summary>
        /// 店铺详细地址
        /// </summary>
        [Required(ErrorMessage = "请输入店铺详细地址")]
        public string shop_address { get; set; }
        /// <summary>
        /// 店铺说明
        /// </summary>
        [Required(ErrorMessage = "请输入店铺说明")]
        public string remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }
        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool is_disabled { get; set; }
        /// <summary>
        /// 跳转url
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 集散中心Id
        /// </summary>
        public long? entrepot_id { get; set; }
        /// <summary>
        /// 费率
        /// </summary>
        public decimal rate { get; set; }
        /// <summary>
        /// 一级类目ID
        /// </summary>
        public long? first_categories_id { get; set; }
        /// <summary>
        /// 一级类目名称
        /// </summary>
        public string first_categories_name { get; set; }
        /// <summary>
        /// 二级类目ID
        /// </summary>
        public long? second_categories_id { get; set; }
        /// <summary>
        /// 二级类目名称
        /// </summary>
        public string second_categories_name { get; set; }
    }

    public class shop_info_dto_ex :shop_info_dto {
        /// <summary>
        /// 费率
        /// </summary>
        public decimal rate { get; set; }
        /// <summary>
        /// 货款红钻部分接收商户手机号
        /// </summary>
        public string red_drill_receiver_mobile { get; set; }
        /// <summary>
        /// 关联账号信息
        /// </summary>
        public virtual merchant_dto merchant { get; set; }
    }
}
